
<?php 

$this->widget('ext.pdfgrid.EPDFGrid', array(
	'id' => 'drill-pdf',
	'dataProvider' => $model->search(),
	'fileName' => 'drill',
	'columns' => array(
		'id',
		'name',
		array(
				'name'=>'category',
				'value'=>'GxHtml::valueEx($data->category0)',
				'filter'=>GxHtml::listDataEx(DrillCategory::model()->findAllAttributes(null, true)),
				),
		'purpose',
		'description',
		'tips',
		/*
		'youtube_id',
		array(
				'name'=>'author_id',
				'value'=>'GxHtml::valueEx($data->author)',
				'filter'=>GxHtml::listDataEx(User::model()->findAllAttributes(null, true)),
				),
		*/

	),
  'config'    => array(
      'title'     => Yii::app()->name,
      'subTitle' => 'drill  List',
      'colWidths' => array(40, 40, 40, 40, 40),
      'colAligns' => array('C','L','L','L','L','C','C'),
      'headFillColor' => array(130,0,0),
      'headTextColor' => 255,
      'evenFillColor' => array(240,240,240),
      'rowTextColor' => 50
  ),
	
)); ?>